package com.ruoyi.supplier.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 价格对象 tb_price
 * 
 * @author ruoyi
 * @date 2021-02-25
 */
public class TbPrice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Integer autoId;
    /** 单价表 */
    private Long priceId;

    private List<Integer> ids;

    /** 商品表ID */
    @Excel(name = "商品表ID")
    private Long productId;


    private Long typeId;

    /** 商品分类 */
    @Excel(name = "商品分类")
    private String typeName;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 进货价 */
    @Excel(name = "进货价")
    private BigDecimal price;

    /** 参考单价 */
    @Excel(name = "参考单价")
    private BigDecimal referencePrice;

    private Long brandId;

    /** 品牌名称 */
    @Excel(name = "品牌名称")
    private String brandDesc;

    /** 规格明细名称 */
    @Excel(name = "规格明细名称")
    private String itemName;

    /** 零售价格 */
    @Excel(name = "零售价格")
    private BigDecimal marketPrice;

    /** 会员价 */
    @Excel(name = "会员价")
    private BigDecimal memberPrice;


    private Integer storeCount;

    private Long storeId;
    private Long sId;

    /** 产地 */
    @Excel(name = "产地")
    private String origin;

    /** sku */
    @Excel(name = "sku")
    private String sku;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private String productSn;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private Long measurement;

    /** 保质期限 */
    @Excel(name = "保质期限")
    private Long shelfLife;

    /** 保质期限（年月日） */
    @Excel(name = "保质期限")
    private Long shelfLifeType;

    /** 商品排序 */
    @Excel(name = "商品排序")
    private Long productSort;


    private Integer supplierId;

    private String supplierName;

    private boolean hasChildren;

    private String isPack="N";

    public Integer getAutoId() {
        return autoId;
    }

    public void setAutoId(Integer autoId) {
        this.autoId = autoId;
    }

    public Long getPriceId() {
        return priceId;
    }

    public void setPriceId(Long priceId) {
        this.priceId = priceId;
    }

    public List<Integer> getIds() {
        return ids;
    }

    public void setIds(List<Integer> ids) {
        this.ids = ids;
    }

    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }


    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getBrandDesc() {
        return brandDesc;
    }

    public void setBrandDesc(String brandDesc) {
        this.brandDesc = brandDesc;
    }

    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setBrandId(Long brandId) 
    {
        this.brandId = brandId;
    }

    public Long getBrandId() 
    {
        return brandId;
    }
    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }
    public void setMarketPrice(BigDecimal marketPrice) 
    {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getMarketPrice() 
    {
        return marketPrice;
    }

    public void setOrigin(String origin)
    {
        this.origin = origin;
    }

    public Integer getStoreCount() {
        return storeCount;
    }

    public void setStoreCount(Integer storeCount) {
        this.storeCount = storeCount;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public Long getsId() {
        return sId;
    }

    public void setsId(Long sId) {
        this.sId = sId;
    }

    public String getOrigin()
    {
        return origin;
    }
    public void setSku(String sku) 
    {
        this.sku = sku;
    }

    public String getSku() 
    {
        return sku;
    }
    public void setProductSn(String productSn) 
    {
        this.productSn = productSn;
    }

    public String getProductSn() 
    {
        return productSn;
    }
    public void setMeasurement(Long measurement) 
    {
        this.measurement = measurement;
    }

    public Long getMeasurement() 
    {
        return measurement;
    }
    public void setShelfLife(Long shelfLife) 
    {
        this.shelfLife = shelfLife;
    }

    public Long getShelfLife() 
    {
        return shelfLife;
    }
    public void setShelfLifeType(Long shelfLifeType) 
    {
        this.shelfLifeType = shelfLifeType;
    }

    public Long getShelfLifeType() 
    {
        return shelfLifeType;
    }
    public void setProductSort(Long productSort) 
    {
        this.productSort = productSort;
    }

    public Long getProductSort() 
    {
        return productSort;
    }

    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public boolean isHasChildren() {
        return hasChildren;
    }

    public void setHasChildren(boolean hasChildren) {
        this.hasChildren = hasChildren;
    }


    public BigDecimal getMemberPrice() {
        return memberPrice;
    }

    public void setMemberPrice(BigDecimal memberPrice) {
        this.memberPrice = memberPrice;
    }

    public BigDecimal getReferencePrice() {
        return referencePrice;
    }

    public void setReferencePrice(BigDecimal referencePrice) {
        this.referencePrice = referencePrice;
    }

    public String getIsPack() {
        return isPack;
    }

    public void setIsPack(String isPack) {
        this.isPack = isPack;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("priceId",getPriceId())
            .append("productId", getProductId())
            .append("typeId", getTypeId())
            .append("productName", getProductName())
            .append("price", getPrice())
            .append("brandId", getBrandId())
            .append("itemName", getItemName())
            .append("marketPrice", getMarketPrice())
            .append("origin", getOrigin())
            .append("sku", getSku())
            .append("productSn", getProductSn())
            .append("measurement", getMeasurement())
            .append("createBy", getCreateBy())
            .append("shelfLife", getShelfLife())
            .append("createTime", getCreateTime())
            .append("shelfLifeType", getShelfLifeType())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("productSort", getProductSort())
            .append("remark", getRemark())
            .toString();
    }
}
